package cn.tedu.charging.device.controller;

import cn.tedu.charging.common.pojo.JsonResult;
import cn.tedu.charging.device.pojo.vo.StationInfoVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/device")
@RestController
@Api(tags = "设备站相关接口")
public class deviceController {
    @ApiOperation("获取设备站信息")
    @GetMapping("/station/info/{gunId}")
    public JsonResult getStationInfo(@PathVariable("gunId") Integer gunId) {
        log.info("获取设备站信息={}", gunId);
        StationInfoVO vo = new StationInfoVO();
        vo.setStationId(1);
        vo.setOperatorId(1);
        // JsonResult jsonResult = new JsonResult();
        // jsonResult.setData(vo);
        // jsonResult.setCode(2000);
        return JsonResult.ok(vo);
    }
}
